<?php
/**
* File that contains IndexController class.
* @package busmap
*/

/**
* IndexController renders the map on the main page.
* @package busmap
*/
class IndexController extends Zend_Controller_Action
{

	/**
	* Initialize does nothing.
	*/
    public function init()
    {
        /* Initialize action controller here */
    }

	/**
	* Index action checks if the user has requested to view a specific busstop or the whole map.
	* Then it renders the map.
	*/
    public function indexAction()
    {
		$activeBusstopId = $this->_request->getParam('activeBusstopId');
		$gotoY = $this->_request->getParam('gotoY');
		if($activeBusstopId){
			$this->view->activeBusstopId = $activeBusstopId;
		}else{
			$this->view->activeBusstopId = 0;
		}

		
		$this->render('map');

    }


}